import React from 'react'
import styles from './../youkee.less'

class BoxLabel extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    return <div className={styles.boxLabel}>
      {this.props.text}&nbsp;{(this.props.num !== undefined) ? `( ${this.props.num} )` : ''}
      {this.props.children}
    </div>
  }
}

export default BoxLabel
